package cn.zhf.shop.service;

import cn.zhf.shop.entity.lesson.Lesson;
import cn.zhf.shop.entity.Message;
import cn.zhf.shop.entity.search.CreditApplySearch;
import cn.zhf.shop.entity.search.LessonSearch;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface LessonService {

    Message<?> insertLesson(Lesson l);

    Message deleteByPrimaryKey(Integer id);

    Message insert(Lesson record);

    Message<Lesson> selectByPrimaryKey(Integer id);

    Message updateByPrimaryKey(Lesson record);

    Message<List<Lesson>> selectAll();

    Message<List<Lesson>> selectOverviewByName(String lessonName);

    Message<List<Lesson>> selectOverviewByType(String lessonType);

    Message<List<Lesson>> selectOverviewByDistrict(String district);

    Message<List<Lesson>> selectOverviewByCampus(String campusName);

    Message<List<Lesson>> selectByHead(int head);

    Lesson selectByPrimaryKey2(Integer id);

    List<Lesson> selectAll2();

    List<Lesson> selectByHead2(int head);

    int insertSelective(Lesson record);

    int updateByPrimaryKeySelective(Lesson record);

    Message<List<Lesson>> selectByLessonIdAndLessonNameAndCampusAndLessonType2(Integer lessonId,String lessonName,Integer campus,String lessonType,Integer userId);

    Message<List<Lesson>> selectByLessonIdAndLessonNameAndCampusAndLessonType(String str,Integer userId);

    Message mohuConditionSearch(LessonSearch c);

    Message getAllByOrgId(int orgId);
}





